projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bf3a86
)
Warning fix in locus
author
Robert Lipe
<robertlipe@gpsbabel.org>
Mon, 3 Dec 2018 06:46:02 +0000
(
00:46
-0600)
committer
Robert Lipe
<robertlipe@gpsbabel.org>
Mon, 3 Dec 2018 06:46:02 +0000
(
00:46
-0600)
mtk_locus.cc
patch
|
blob
|
history
diff --git
a/mtk_locus.cc
b/mtk_locus.cc
index ab7f4335a5bbca5a94cf4fdec43ce32291f98563..23c322a0cafd5727c58947285bee8592e05e96c7 100644
(file)
--- a/
mtk_locus.cc
+++ b/
mtk_locus.cc
@@
-325,7
+325,6
@@
process_packet()
void
process_pmtklox()
{
- int hexval;
uint8_t fixbytes[16];
static Waypoint* trkpt;
static Waypoint* waypt;
@@
-384,6
+383,7
@@
process_pmtklox()
return;
}
for (int i = 0; i<4; i++) {
+ unsigned int hexval;
sscanf(&token[i * 2], "%2x", &hexval);
fixbytes[bytenum++] = hexval;
calculated_checksum ^= hexval;